LIBRARY IEEE; 
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.STD_LOGIC_ARITH.ALL;
USE IEEE.STD_LOGIC_UNSIGNED.ALL;

--Circuitos Logicos com 3 portas de 3 entradas

ENTITY ic_3 IS

    PORT(pin1, pin2, pin3, pin4, pin5, pin9, pin10, pin11, pin13: IN STD_LOGIC; 
        pin6, pin8, pin12: OUT STD_LOGIC);

END ic_3;

ARCHITECTURE nand3_ic OF ic_3 IS

BEGIN

    pin12 <= NOT(pin1 AND pin2 AND pin13);
    pin6 <= NOT(pin3 AND pin4 AND pin5);
    pin8 <= NOT(pin9 AND pin10 AND pin11);

END nand3_ic;